<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html">
<html>
<head>
<meta charset="UTF-8">
<title>登录</title>
<script type="text/javascript">
function init(){
	document.querySelector("#btn_register").addEventListener("click",()=>{
		window.location.href="register.action";
	},false);
}
window.addEventListener("click",init,false);
</script>
</head>
<body>
<form action="login.action" method="post">
<fieldset>
	<legend>登录信息</legend>
	用户名：<input type="text" name="userName"><br>
	密码：<input type="password" name="password"><br>
	<button type="button" id="btn_register">注册</button><button type="submit">登录</button>
</fieldset>
</form>
</body>
</html>